package demo1;

public class SingleLazy1 {
    private static SingleLazy1 instance = null;

    private SingleLazy1() {}

    public static SingleLazy1 get() {
        synchronized (SingleLazy.class) {
            if (instance == null) {
                instance = new SingleLazy1();
            }
        }
        return instance;
    }
}
